<?php
include_once("../../service/specialProductService.php");
include_once("../../util/constant.php");

$status = $_POST["status"];
$specProId = $_POST["specProId"];

if(updateSpecialProductStatus($specProId, $status)) {
    if($status == 1) updateInactiveExcept($specProId);
    echo UPDATE_SUCCESSFULLY;   
}
else echo UPDATE_SUCCESSFULLY;
?>